//package com.medicine.hbp.fragment.self;
//
//import org.kymjs.kjframe.http.HttpParams;
//
//import android.os.Bundle;
//import android.support.v4.app.Fragment;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//
//import com.medicine.hbp.adapter.self.SelfUserGxAdapter;
//import com.medicine.hbp.http.AppHttpCallBack;
//import com.medicine.hbp.http.AppHttps;
//import com.medicine.hbp.http.HttpInterface;
//import com.medicine.hbp.mob.FindshareVo;
//import com.medicine.hbp.uitl.CommUtil;
//import com.medicine.hbp.uitl.ToastUtil;
//import com.medicine.hbp.xListView.XListView;
//import com.medicine.hbp.xListView.XListView.IXListViewListener;
//import com.medicine.hbp.R;
//
///**
// *	关心的人
// * @author Administrator
// */
//public class GxFragment extends Fragment implements IXListViewListener {
//	private XListView listView;
//	private SelfUserGxAdapter adapter;
//	private View View;
//
//	private volatile boolean refresh = true;
//	private volatile int page = 1;// 当前页（从0开始）
//	private int pageSize = 10;
//
//	@Override
//	public android.view.View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//		View = inflater.inflate(R.layout.fragment_gx, container, false);
//		listView = (XListView) View.findViewById(R.id.xListView_detail);
//		initView();
//		return View;
//	}
//	private void initView() {
//		adapter = new SelfUserGxAdapter(getActivity());
//		listView.setAdapter(adapter);
//		listView.setXListViewListener(this);
//		httpFindshare();
//	}
//	/**
//	 * 关心的人
//	 */
//	private void httpFindshare() {
//		HttpParams params = new HttpParams();
//		params.put("current", page);// 当前页数(不传默认为1)
//		params.put("rowCount", pageSize);// 每页显示数(不传默认为10)
//		AppHttps.HttpPost(getActivity(),HttpInterface.FIND_SHARE, params,new AppHttpCallBack<FindshareVo>(FindshareVo.class,getActivity()) {
//			@Override
//			public void onSuccess(FindshareVo result) {
////						boolean hasMore = true;
////						if (refresh) {
////							adapter.changeData(result.shareInfo);
////						} else {
////							adapter.addItems(result.shareInfo);
////							adapter.notifyDataSetChanged();
////						}
////						if (result.shareInfo.size() < pageSize) {
////							hasMore = false;
////						}
////						listView.setPullLoadEnable(hasMore);
//			}
//
//			@Override
//			public void onFailures(int errorCode, String errorMsg) {
//				ToastUtil.showShort(getActivity(), errorMsg);
//			}
//			@Override
//			public void onFinish() {
//				super.onFinish();
//				listView.setRefreshTime(CommUtil.formatDate(System.currentTimeMillis()));
//			}
//		});
//
//	}
//	@Override
//	public void onRefresh() {
//		page=1;
//		refresh = true;
//		listView.setPullLoadEnable(false);
//		httpFindshare();
//	}
//
//	@Override
//	public void onLoadMore() {
//		page++;
//		refresh = false;
//		httpFindshare();
//	}
//}
